self.onmessage = function (e) {
    var messages = e.data.url;  // e.data为{message: 'hello worker!'}
    var workerResult = {};
    var RetCount = 1;

    workerResult.url = e.data.url;
    // do something
    //workerResult.abc = 'sfsdf'
    var xhr1 = new XMLHttpRequest();
    xhr1.open('GET', messages, true);
    
    xhr1.responseType = 'arraybuffer';
    xhr1.send(null);
    workerResult.buffer1 = xhr1.response;

    

    xhr1.onload = function (e) {
        if (this.status == 200) {
            workerResult.buffer1 = xhr1.response;
            RetCount--;
            if(RetCount == 0) postMessage(workerResult);
        }
    };
    //postMessage(workerResult);
}